import java.util.*;
import java.io.*;

class TableTestDriver {
	public static void main(String[] args) {
		String useDelim = 	new String(",");

		Table aTable = new Table(".\\TeacherDataFile.csv", useDelim);
		aTable.PrintTable();

		int nRowsInTable = aTable.GetNumberOfLines();
		System.out.println("# lines: "+nRowsInTable);
		for (int n = 0; n < nRowsInTable ; n++) {
			int nCols = aTable.GetColumnsInLine(n);
			for (int m = 0; m < nCols ; m++) {
				String str = aTable.ReadAt(n, m);
				System.out.println("Row,Col: " + n + ", "+ m+" "+ str);
			}
		}

		aTable.WriteToFile(new String(".\\StudentsDataFileVerify.csv"));
	}
}
